package com.sms.jiujia.utils;

import com.sms.jiujia.service.LayoutConsoleLog;
import com.sms.jiujia.ui.setting.Constant;

import java.io.IOException;

/**
 * @author songmingsong
 * @date 2023/5/6
 */
public class LogUtils {
    /**
     * 获取全局日志打印实例
     *
     * @return LayoutConsoleLog
     * @throws IOException
     */
    public static LayoutConsoleLog getLayoutConsoleLogInstance() {
        TextAreaPrint textAreaPrint = new TextAreaPrint(Constant.setting.getTextArea());
        LayoutConsoleLog layoutConsoleLog = new LayoutConsoleLog(textAreaPrint);
        return layoutConsoleLog;
    }
}
